﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FacadePattern.Equipments
{
    public class MusicPlayer
    {
        private string _music;

        public void On()
        {
            Console.WriteLine("打开音乐播放器");
        }

        public void Play(string music)
        {
            _music = music;
            Console.WriteLine($"播放音乐 {_music}");
        }

        public void Stop()
        {
            Console.WriteLine($"bo||II\"{_music}\"");
        }

        public void Off()
        {
            Console.WriteLine("关闭音乐播放器");
        }
    }
}
